const app = getApp();
Component({
  data: {
    selected: 0,
    color: "#7a7a7a",
    selectedColor: app.globalData.config.selectedColor,
    backgroundColor: "#ffffff",
    list: app.globalData.config.tarbarList
  },
  attached() {
  
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset;
      const url = data.path;
      wx.switchTab({
        url
      })
    }
  }
})